﻿namespace Softserve.Pottery.Ordering
{
    using System;
    using Softserve.Pottery.Infrastructure;
    using Softserve.Pottery.Infrastructure.Interfaces;
    using Softserve.Pottery.Ordering.Contracts;

    public class OrderingController : DomainControllerBase, IOrderContract, IPaymentsContract
    {
        #region Construcors from base();

        public OrderingController(IRepository context)
            : base(context) { }

        public OrderingController(IRepository context, IMessenger bridge)
            : base(context, bridge, null) { }

        public OrderingController(IRepository context, IMessenger bridge, IServiceProvider provider) : base(context, bridge, provider) { }

        #endregion

        #region IOrderContract Members

        public bool CreateOrder(Domains.Order item)
        {
            throw new System.NotImplementedException();
        }

        #endregion

        #region IPaymentsContract Members

        public Domains.Payment CreatePaymen(int id, int orderId, decimal price, PaymentType paymentType)
        {
            throw new System.NotImplementedException();
        }

        #endregion

        protected override void Dispose(bool disposeManaged)
        {
            ///TODO: Implement code of release resources here
        }
    }
}
